package com.lzgcoding.onlineshopapp.feature.detail.component

import androidx.compose.foundation.Image
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.IconButton
import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import com.lzgcoding.onlineshopapp.R

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun DetailTopBar(
    upPress: () -> Unit
) {
    TopAppBar(
        colors = TopAppBarDefaults.topAppBarColors(
            containerColor = Color.Transparent
        ),
        navigationIcon = {
            IconButton(onClick = { upPress.invoke() }) {
                Image(
                    painter = painterResource(R.drawable.back),
                    contentDescription = "icon-back"
                )
            }
        },
        title = {

        },
        actions = {
            IconButton(onClick = { }) {
                Image(
                    painter = painterResource(R.drawable.fav),
                    contentDescription = "icon-fav"
                )
            }
            IconButton(onClick = { }) {
                Image(
                    painter = painterResource(R.drawable.share),
                    contentDescription = "icon-share"
                )
            }
        }
    )
}